package edu.sctu.practice.class02.lvchang.assign03.test2;

/**
 * Created by Administrator on 2015/10/23.
 */
public class ComparableCircle extends Circle implements Comparable{

    public ComparableCircle(double r) {
        super(r);
    }

    @Override
    public int compareTo(Object o) {
        if (super.findArea()>((Circle) o).findArea()) {
            return 1;
        }
        return 0;
    }

}
